<?php echo form_open('admin/pages/link_form/'.$id); ?>

	<label for="menu_title">Tiêu đề</label>
	<?php
	$data	= array('id'=>'title', 'name'=>'title', 'value'=>set_value('title', $title), 'class'=>'span5');
	echo form_input($data);
	?>

	<label for="url">Địa chỉ</label>
	<?php
	$data	= array('id'=>'url', 'name'=>'url', 'value'=>set_value('url', $url), 'class'=>'span5'); 
	echo form_input($data);
	?>
	<span class="help-inline"><?php echo 'http://domain.com';?></span>

	<label for="sequence">Thứ tự</label>
	<?php
	$data	= array('id'=>'sequence', 'name'=>'sequence', 'value'=>set_value('sequence', $sequence), 'class'=>'span5');
	echo form_input($data);
	?>

	<label class="checkbox">
	<?php
	$data	= array('name'=>'new_window', 'value'=>'1', 'checked'=>(bool)$new_window);
	echo form_checkbox($data);
	?>
	<?php echo 'Mở trong tab mới';?></label>

	<div class="form-actions">
		<input class="btn btn-primary" type="submit" value="Cập nhật"/>
	</div>
</form>